<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <title>HAProxy</title>
        <link href="/webman/help/help.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
        <h1>HAProxy</h1>
        <p>HAProxy is a free, very fast and reliable solution offering high availability, load
           balancing, and proxying for TCP and HTTP-based applications.</p>
        <h3>Configuration</h3>
        <p>In this panel, you can view the status of HAProxy and perform configuration tasks. If status is <b>Stopped</b>
           there is a problem with the configuration. Fix the configuration then click <b>Write configuration</b>.</p>
        <p><span class="note_head">Note: </span>The actions below will restart HAProxy</p>
        <h4>Write configuration</h4>
        <p>This will write the configuration file based on data in panels Frontends, Backends and Associations</p>
        <h4>Reload default configuration</h4>
        <p>Reload the default configuration of HAProxy.</p>
        <p><span class="note_head">Warning: </span>Your changes in panels Frontends, Backends and Associations will be lost</p>
        <h4>Generate certificate</h4>
        <p>Create a certificate from the one used for DSM. After changing your certificate in DSM, use this to use it with HAProxy.</p>
        <h3>Frontends</h3>
        <p>A Frontend's task is to listen on one or multiple ports for incoming traffic. You can <b>Add</b>, <b>Edit</b> or
           <b>Delete</b> Frontends with the dedicated buttons.</p>
        <ol>
            <li>Name: Name of the Frontend without spaces (e.g. http)</li>
            <li>Binds: Coma-separated <a href="http://cbonte.github.com/haproxy-dconv/configuration-1.5.html#bind">binds</a>
                (e.g. :5080, me.synology.me:5081)</li>
            <li>Options: Coma-separated extra lines to insert into the configuration file (e.g. maxconn 128), see the
                <a href="http://cbonte.github.com/haproxy-dconv/configuration-1.5.html#4.1">documentation</a> for the
                available options for a Frontend</li>
        </ol>
        <h3>Backends</h3>
        <p>A Backend is a running service like SickBeard, Web Station or ZNC that uses a specific port number. You can <b>Add</b>,
           <b>Edit</b> or <b>Delete</b> Backends with the dedicated buttons.</p>
        <ol>
            <li>Name: Name of the Backend without spaces (e.g. sickbeard)</li>
            <li>Servers: Coma-separated <a href="http://cbonte.github.com/haproxy-dconv/configuration-1.5.html#4-server">servers</a> (e.g. sickbeard localhost:8081)</li>
            <li>Options: Coma-separated extra lines to insert into the configuration file (e.g. maxconn 128, mode http), see the
                <a href="http://cbonte.github.com/haproxy-dconv/configuration-1.5.html#4.1">documentation</a> for the
                available options for a Backend</li>
        </ol>
        <h3>Associations</h3>
        <p>An Association links a Frontend with a Backend under a given condition. It will result in a
           <a href="http://cbonte.github.com/haproxy-dconv/configuration-1.5.html#4-use_backend">use_backend</a> line in the confiuration file.
           You can <b>Add</b>, <b>Edit</b> or <b>Delete</b> Associations with the dedicated buttons.</p>
        <ol>
            <li>Frontend: Frontend for the Association (e.g. http)</li>
            <li>Backend: Backend for the Association (e.g. sickbeard)</li>
            <li>Condition: Condition for the Frontend to use the Backend to take effect (e.g. if { hdr_dom(Host) -i blackhole }), see the                                                                                                                                                       
                <a href="http://cbonte.github.com/haproxy-dconv/configuration-1.5.html#7">documentation</a> for the
                syntax of a condition. You can add ACLs to the Frontend options or use anonymous ACLs</li>
        </ol>
        <p><span class="note_head">Note: </span>When you delete a Frontend or a Backend, all Associations related to it are also deleted</p>
    </body>
</html>
